package nl.hanze.designpatterns;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * util class
 *
 * Created by Aron on 5-10-2014.
 */
public class util {
    private static DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");

    /**
     * Gives the current date.
     * the date format is: yyyy/MM/dd HH:mm:ss
     * @return The current date
     */
    public static String getCurrentDate(){
        Date date = new Date();
        return dateFormat.format(date);
    }
}
